package comprasdiretas.entity;

import java.io.Serializable;
import java.lang.String;
import java.math.BigDecimal;

import javax.persistence.*;

/**
 * Entity implementation class for Entity: UsuarioEntity
 *
 */
@NamedQueries({@NamedQuery(name="procurarSaldoElementoDespesaPeloAno", query="SELECT s FROM SaldoElementoEntity s WHERE s.elementoDespesaAnoPK.ano LIKE :ano")})
@Entity
@Table(name="SaldoElemento", schema="comprasdiretasdb")
public class SaldoElementoEntity implements Serializable {

	@EmbeddedId   
	private SaldoElementoPK elementoDespesaAnoPK;
	@Column(name="saldo")
	private BigDecimal saldo;
	
	private static final long serialVersionUID = 1L;

	public SaldoElementoEntity() {
	}
	
	public SaldoElementoEntity(String elemento, String ano, BigDecimal saldo) {
		this.elementoDespesaAnoPK=new SaldoElementoPK(ano,elemento);
		this.saldo=saldo;
	}

	public BigDecimal getSaldo() {
		return saldo;
	}

	public void setSaldo(BigDecimal saldo) {
		this.saldo = saldo;
	}

	public SaldoElementoPK getElementoDespesaAnoPK() {
		return elementoDespesaAnoPK;
	}

	public void setElementoDespesaAnoPK(SaldoElementoPK elementoDespesaAnoPK) {
		this.elementoDespesaAnoPK = elementoDespesaAnoPK;
	}
	   
}
